package com.baizhiedu.rsm.dto;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * 封装题目和答案数据 显示在页面上
 * 包含数据有 题目 答案 回答时间  答题人
 * @author lby
 */
public class ShowAnswer implements Serializable{

    private String subjectText;
    private String answerText;
    @JSONField(format = "yyyy-MM-dd")
    private Date answerDate;
    private String answerName;

    @Override
    public String toString() {
        return "ShowAnswer{" +
                "subjectText='" + subjectText + '\'' +
                ", answerText='" + answerText + '\'' +
                ", answerDate=" + answerDate +
                ", answerName='" + answerName + '\'' +
                '}';
    }

    public String getSubjectText() {
        return subjectText;
    }

    public void setSubjectText(String subjectText) {
        this.subjectText = subjectText;
    }

    public String getAnswerText() {
        return answerText;
    }

    public void setAnswerText(String answerText) {
        this.answerText = answerText;
    }

    public Date getAnswerDate() {
        return answerDate;
    }

    public void setAnswerDate(Date answerDate) {
        this.answerDate = answerDate;
    }

    public String getAnswerName() {
        return answerName;
    }

    public void setAnswerName(String answerName) {
        this.answerName = answerName;
    }

    public ShowAnswer(String subjectText, String answerText, Date answerDate, String answerName) {

        this.subjectText = subjectText;
        this.answerText = answerText;
        this.answerDate = answerDate;
        this.answerName = answerName;
    }

    public ShowAnswer() {

    }
}
